﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using TaobaoERP.BusinessTaobao.ValidateUser;
using TaobaoERP.BusinessTaobao.TaobaoAPI;
using TaobaoERP.BusinessTaobao.Common;
using TaobaoERP.BusinessTaobao.Core;
using TaobaoERP.Core.Common;

namespace TaobaoERP.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewData["Title"] = "Home Page";
            ViewData["Message"] = "Welcome to ASP.NET MVC!";
            //ViewData["UserName"] = new ValidateUser().getUserId("辣椒泡泡");
            //string url = new TaobaoAPI().itemcats_get("0", Request.Cookies["sessionid"].Value) ;
            //ViewData["UserName"]=url;
            Utils.SetCookies("isp_username", Request["isp_username"]);
            return View();
        }

        public ActionResult About()
        {
            ViewData["Title"] = "About Page";

            return View();
        }
    }
}
